import fetch from 'common/src/utils/fetch'

/**
 *考试周总表-查询
 */
function getExamWeekStatisticsPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/getExamWeekStatisticsPage',
        method: 'post',
        data
    })
}

/**
 *考试周总表(勾选导出)
 */
function exportSelectedExamWeekStatisticsPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportSelectedExamWeekStatisticsPage',
        method: 'post',
        data
    })
}

/**
 *考试周总表(导出)
 */
function exportExamWeekStatisticsPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportExamWeekStatisticsPage',
        method: 'post',
        data
    })
}

/**
 *学院考场明细表
 */
function getCollegeExaminationRoomPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/getCollegeExaminationRoomPage',
        method: 'post',
        data
    })
}

/**
 *学院考场明细表-监考+考场维度
 */
function getCollegeExaminationRoomPageExp(data) {
  return fetch({
    url: '/api/electionservice/undergraduateExamExportDetail/getCollegeExaminationRoomPageExp',
    method: 'post',
    data
  })
}

/**
 *学院考场明细表(导出)
 */
function exportCollegeExaminationRoomPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportCollegeExaminationRoomPage',
        method: 'post',
        data
    })
}

/**
 *学院考场明细表(勾选导出)
 */
function exportSelectedCollegeExaminationRoomPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportSelectedCollegeExaminationRoomPage',
        method: 'post',
        data
    })
}

/**
 *学院考场明细表-监考+考场维度(导出)
 */
function exportCollegeExaminationRoomPageExp(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportCollegeExaminationRoomPageExp',
        method: 'post',
        data
    })
}

/**
 *学院考场明细表-监考+考场维度(勾选导出)
 */
function exportSelectedCollegeExaminationRoomPageExp(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportSelectedCollegeExaminationRoomPageExp',
        method: 'post',
        data
    })
}

/**
 *跨校区考试明细表
 */
function getCrossCampusExaminationPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/getCrossCampusExaminationPage',
        method: 'post',
        data
    })
}

/**
 *跨校区考试明细表(导出)
 */
function exportCrossCampusExaminationPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportCrossCampusExaminationPage',
        method: 'post',
        data
    })
}

/**
 *跨校区考试明细表(勾选导出)
 */
function exportSelectedCrossCampusExaminationPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportSelectedCrossCampusExaminationPage',
        method: 'post',
        data
    })
}

/**
 *学生一周考四门明细表
 */
function getFourCoursesWeekPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/getFourCoursesWeekPage',
        method: 'post',
        data
    })
}

/**
 *学生一周考四门明细表(导出)
 */
function exportFourCoursesWeekPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportFourCoursesWeekPage',
        method: 'post',
        data
    })
}

/**
 *学生一周考四门明细表(勾选导出)
 */
function exportSelectedFourCoursesWeekPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportSelectedFourCoursesWeekPage',
        method: 'post',
        data
    })
}

// /**
//  *学院考试课程明细表
//  */
// function getCollegeExamCoursePage(data) {
//     return fetch({
//         url: '/api/electionservice/undergraduateExamExportDetail/getCollegeExamCoursePage',
//         method: 'post',
//         data
//     })
// }

/**
 *学院考试课程明细表(导出)
 */
function exportCollegeExamCoursePageList(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportCollegeExamCoursePageList',
        method: 'post',
        data
    })
}

/**
 *学院考试课程明细表(勾选导出)
 */
function exportCollegeExamCourseList(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportCollegeExamCoursePage',
        method: 'post',
        data
    })
}

/**
 *缺考统计表
 */
function getExamDefectStatisticsPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/getExamDefectStatisticsPage',
        method: 'post',
        data
    })
}

/**
 *缺考统计表导出
 */
function exportExamDefectStatisticsPage(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportExamDefectStatisticsPage',
        method: 'post',
        data
    })
}
/**
 *缺考统计表(勾选导出)
 */
function exportSelectedExamDefectStatisticsPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportSelectedExamDefectStatisticsPage',
        method: 'post',
        data
    })
}
/**
 *缺考统计表-缺考学生数
 */
function getExamDefectStudentStatisticsPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/getExamDefectStudentStatisticsPage',
        method: 'post',
        data
    })
}
/**
 *缺考统计表-缺考学生数导出
 */
function exportExamDefectStudentStatisticsPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportExamDefectStudentStatisticsPage',
        method: 'post',
        data
    })
}
/**
 *缺考统计表-缺考学生数(勾选导出)
 */
function exportSelectedExamDefectStudentStatisticsPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportSelectedExamDefectStudentStatisticsPage',
        method: 'post',
        data
    })
}
/**
 *缺考统计表-缺考学生人次
 */
function getExamDefectPersonTimeStatisticsPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/getExamDefectPersonTimeStatisticsPage',
        method: 'post',
        data
    })
}
/**
 *缺考统计表-缺考学生人次导出
 */
function exportExamDefectPersonTimeStatisticsPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportExamDefectPersonTimeStatisticsPage',
        method: 'post',
        data
    })
}
/**
 *缺考统计表-缺考学生人次(勾选导出)
 */
function exportSelectedExamDefectPersonTimeStatisticsPage(data) {
    return fetch({
        url:
            '/api/electionservice/undergraduateExamExportDetail/exportSelectedExamDefectPersonTimeStatisticsPage',
        method: 'post',
        data
    })
}

/**
 * 获取key
 */
function exportReport(key) {
    return fetch({
        url: '/api/electionservice/undergraduateExamDownload/result/' + key,
        method: 'get'
    })
}

/**
 *学生信息(导出)
 */
function exportDelayedStuInfo(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportDelayedStuInfo',
        method: 'post',
        data
    })
}
/**
 *学生信息(勾选导出)
 */
function exportDelayedStuInfoList(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportDelayedStuInfoList',
        method: 'post',
        data
    })
}

/**
 *学生排考详情(导出)
 */
function exportDelayedStuExamInfo(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportDelayedStuExamInfo',
        method: 'post',
        data
    })
}
/**
 *学生排考详情(勾选导出)
 */
function exportDelayedStuExamInfoList(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportDelayedStuExamInfoList',
        method: 'post',
        data
    })
}

/**
 *缓考学院(导出)
 */
function exportExaminationOfCollege(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportExaminationOfCollege',
        method: 'post',
        data
    })
}
/**
 *缓考学院(勾选导出)
 */
function exportExaminationOfCollegeList(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportExaminationOfCollegeList',
        method: 'post',
        data
    })
}

/**
 *缓考课程(导出)
 */
function exportExaminationOfCourse(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportExaminationOfCourse',
        method: 'post',
        data
    })
}
/**
 *缓考课程(勾选导出)
 */
function exportExaminationOfCourseList(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportExaminationOfCourseList',
        method: 'post',
        data
    })
}

/**
 *年级专业排考表(导出)
 */
function exportGraExamDetail(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportGraExamDetail',
        method: 'post',
        data
    })
}

/**
 *年级专业排考表(导出 勾选导出)
 */
function exportSelectGraExamDetail(data) {
  return fetch({
    url: '/api/electionservice/undergraduateExamExportDetail/exportSelectedExamDetail',
    method: 'post',
    data
  })
}

/**
 *研究生选本科生课程考试安排明细表(导出)
 */
function exportGraExamCourse(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportGraExamCourse',
        method: 'post',
        data
    })
}

/**
 *研究生选本科生课程考试安排明细表(勾选导出)
 */
function exportGraExamCourseList(data) {
    return fetch({
        url: '/api/electionservice/undergraduateExamExportDetail/exportGraExamCourseList',
        method: 'post',
        data
    })
}

/**
 * 获取额定人数页面周数集合
 */
function findWeekNumberList(calendarId,examType) {
  return fetch({
    url:
      "/api/electionservice/undergraduateExamNumberTime/findWeekNumberList?calendarId=" +
      calendarId + "&examType="+ examType,
    method: "get"
  })
}

/**
 * 获取key
 */
function exportStatusObs(key) {
  return fetch({
    url: '/api/electionservice/undergraduateExamDownload/resultObs/' + key,
    method: 'get'
  });
}

/**
 * 导出
 * @param {Object} data
 */
function exportAcdemicDeanListZip(data,isPdf) {
  return fetch({
    url: '/api/electionservice/undergraduateExamQuery/exportAcdemicDeanListZip?isPdf='+isPdf,
    method: 'post',
    data
  })
}

/**
 * 一键导出签到表
 * @param {Object} data
 */
function exportPrintingList(data) {
  return fetch({
    url: '/api/electionservice/undergraduateExamQuery/exportPrintingList',
    method: 'post',
    data
  })
}

/**
 *大补考出卷查询-课程列表分页查询
 */
function getBReexamCourseListPage(data) {
  return fetch({
    url: '/api/electionservice/undergraduateExamReexam/getBReexamCourseListPage',
    method: 'post',
    data
  })
}

/**
 *大补考课程列表(导出)
 */
function exportBReexamCourseList(data) {
  return fetch({
    url: '/api/electionservice/undergraduateExamReexam/exportBReexamCourseList',
    method: 'post',
    data
  })
}

/**
 *大补考课程列表(导出)
 */
function exportSelectedBReexamCourseStudent(data) {
  return fetch({
    url: '/api/electionservice/undergraduateExamReexam/exportSelectedBReexamCourseStudent',
    method: 'post',
    data
  })
}



const collegeExamUrl = '/api/electionservice/undergraduateExamExportDetail/getCollegeExamCoursePage'
const examCourseUrl = '/api/electionservice/undergraduateExamExportDetail/getExaminationOfCourse'
const examCollegeUrl = '/api/electionservice/undergraduateExamExportDetail/getExaminationOfCollege'
const stuInfoUrl = '/api/electionservice/undergraduateExamExportDetail/getDelayedStuInfo'
const stuExamInfoUrl = '/api/electionservice/undergraduateExamExportDetail/getDelayedStuExamInfo'
const gradeProUrl = '/api/electionservice/undergraduateExamExportDetail/getGraList'
const graExamInfoUrl = '/api/electionservice/undergraduateExamExportDetail/graExamCoursePageList'

export default {
    getExamWeekStatisticsPage: getExamWeekStatisticsPage,
    exportExamWeekStatisticsPage: exportExamWeekStatisticsPage,
    exportSelectedExamWeekStatisticsPage: exportSelectedExamWeekStatisticsPage,
    getCollegeExaminationRoomPage: getCollegeExaminationRoomPage,
    getCollegeExaminationRoomPageExp : getCollegeExaminationRoomPageExp,
    exportSelectedCollegeExaminationRoomPage: exportSelectedCollegeExaminationRoomPage,
    exportCollegeExaminationRoomPage: exportCollegeExaminationRoomPage,
    exportCollegeExaminationRoomPageExp: exportCollegeExaminationRoomPageExp,
    exportSelectedCollegeExaminationRoomPageExp: exportSelectedCollegeExaminationRoomPageExp,
    getCrossCampusExaminationPage: getCrossCampusExaminationPage,
    exportCrossCampusExaminationPage: exportCrossCampusExaminationPage,
    exportSelectedCrossCampusExaminationPage: exportSelectedCrossCampusExaminationPage,
    getFourCoursesWeekPage: getFourCoursesWeekPage,
    exportFourCoursesWeekPage: exportFourCoursesWeekPage,
    exportSelectedFourCoursesWeekPage: exportSelectedFourCoursesWeekPage,
    exportReport: exportReport,
    exportCollegeExamCourseList: exportCollegeExamCourseList,
    exportCollegeExamCoursePageList: exportCollegeExamCoursePageList,
    getExamDefectStatisticsPage: getExamDefectStatisticsPage,
    exportExamDefectStatisticsPage: exportExamDefectStatisticsPage,
    exportSelectedExamDefectStatisticsPage: exportSelectedExamDefectStatisticsPage,
    getExamDefectStudentStatisticsPage: getExamDefectStudentStatisticsPage,
    exportExamDefectStudentStatisticsPage: exportExamDefectStudentStatisticsPage,
    exportSelectedExamDefectStudentStatisticsPage: exportSelectedExamDefectStudentStatisticsPage,
    getExamDefectPersonTimeStatisticsPage: getExamDefectPersonTimeStatisticsPage,
    exportExamDefectPersonTimeStatisticsPage: exportExamDefectPersonTimeStatisticsPage,
    exportSelectedExamDefectPersonTimeStatisticsPage: exportSelectedExamDefectPersonTimeStatisticsPage,
    collegeExamUrl: collegeExamUrl,
    examCourseUrl: examCourseUrl,
    examCollegeUrl: examCollegeUrl,
    stuInfoUrl: stuInfoUrl,
    stuExamInfoUrl: stuExamInfoUrl,
    exportDelayedStuInfoList: exportDelayedStuInfoList,
    exportDelayedStuInfo: exportDelayedStuInfo,
    exportDelayedStuExamInfo: exportDelayedStuExamInfo,
    exportDelayedStuExamInfoList: exportDelayedStuExamInfoList,
    exportExaminationOfCollegeList: exportExaminationOfCollegeList,
    exportExaminationOfCourseList: exportExaminationOfCourseList,
    exportExaminationOfCourse: exportExaminationOfCourse,
    exportExaminationOfCollege: exportExaminationOfCollege,
    gradeProUrl: gradeProUrl,
    graExamInfoUrl: graExamInfoUrl,
    exportGraExamCourse: exportGraExamCourse,
    exportGraExamDetail: exportGraExamDetail,
    exportSelectGraExamDetail: exportSelectGraExamDetail,
    exportGraExamCourseList: exportGraExamCourseList,
    findWeekNumberList : findWeekNumberList,
    exportStatusObs : exportStatusObs,
    exportAcdemicDeanListZip : exportAcdemicDeanListZip,
    exportPrintingList : exportPrintingList,
    getBReexamCourseListPage : getBReexamCourseListPage,
    exportBReexamCourseList : exportBReexamCourseList,
    exportSelectedBReexamCourseStudent : exportSelectedBReexamCourseStudent
}
